package com.zhaos.cluster;

import com.zhaosc.invoke.Invocation;
import com.zhaosc.invoke.Invoke;

public class FailfastClusterInvoke implements Cluster {

	@Override
	public String invoke(Invocation invocation) throws Exception {
		try {
			Invoke invoke=invocation.getInvoke();
			return invoke.invoke(invocation);
		} catch (Exception e) {
			e.printStackTrace();
			throw e;
		}
		
	}

}
